package sctu.edu.java.year2016.team04.baiyunfei.day20160523.chapter4_1;

/**
 * 判断一个数的奇偶性
 * Created by DE on 2016/5/23.
 */

import java.util.Scanner;

public class Chapter_4_1 {
    public static void main(String[] args) {

        System.out.println("请输入要判断的数字");
        Scanner scan = new Scanner(System.in);

        int a = scan.nextInt();

        if (a % 2 == 0)
            System.out.println(a + "是偶数");
        else
            System.out.println(a + "是奇数");
    }
}
